package com.spring.condition;

import com.spring.bean.Color;
import org.springframework.beans.factory.FactoryBean;

/**
 * Description:
 *
 * @author lijie
 * @create 2019-01-15 23:45
 * Update by lijie 2019-01-15 23:45
 */
public class ColorBeanFactory implements FactoryBean<Color> {
    @Override
    public Color getObject() throws Exception {
        return new Color();
    }

    @Override
    public Class<?> getObjectType() {
        return Color.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
